package study.springboot.starter.tacker.filter;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

@Slf4j
@Configuration
@Conditional(OnTrackerFilterConditions.class)
public class FilterTrackerAutoConfiguration {

    @Bean
    @Order(-10000)
    public TrackerFilter trackerFilter() {
        log.info(">>>>>>>>>> loading tracker filter");
        return new TrackerFilter();
    }
}
